<?php 
/* DoYouHaoBaby Framework 模板缓存文件 生成时间：2012-01-14 14:53:13  */
!defined('DYHB_PATH') && exit; 
/**
 * DoYouHaoBaby Framework (Gtk窗体-创建器)模板编译文件
 *
 * < Do Not To Modify This File , Or This File Will Be Promptly Rebuilt! >
 *
 * @create 2012-01-14 14:53:13
 * @access public
 */
class GtkGlade_8e9170f7c9816e18d21ec278e0e9ede9 extends TemplateGtkWidgetCreator{
	/**
	 * 构造函数
	 */
	public function __construct(TemplateGtkGlade $oTemplate=null){
		parent::__construct($oTemplate);
		$this->_arrWidgetTree=unserialize('a:1:{s:27:"GtkDialog:DumpMessageDialog";a:3:{s:13:"GtkVBox:vbox1";a:2:{s:15:"GtkLabel:label1";a:0:{}s:33:"GtkScrolledWindow:scrolledwindow1";a:1:{s:23:"GtkTextView:DumpMessage";a:0:{}}}s:17:"GtkButton:button2";a:0:{}s:17:"GtkButton:button1";a:0:{}}}');
		$this->_arrWidgetIds= unserialize('a:7:{s:17:"DumpMessageDialog";s:9:"GtkDialog";s:5:"vbox1";s:7:"GtkVBox";s:6:"label1";s:8:"GtkLabel";s:15:"scrolledwindow1";s:17:"GtkScrolledWindow";s:11:"DumpMessage";s:11:"GtkTextView";s:7:"button2";s:9:"GtkButton";s:7:"button1";s:9:"GtkButton";}');
		$this->_sTemplatePath=''.DYHB_PATH.'/Resource/Template/DumpMessageDialog.template.glade';
	}
	/**
	 * 创建窗体 GtkDialog:DumpMessageDialog
	 */
	 protected function create_DumpMessageDialog(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$DumpMessageDialog=new GtkDialog();		$DumpMessageDialog->set_title('DoYouHaoBaby 调试台');		$DumpMessageDialog->set_modal(true);		$DumpMessageDialog->set_position(Gtk::WIN_POS_CENTER_ON_PARENT);		$DumpMessageDialog->set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);		$vbox1=$this->getWidget('vbox1',$arrObjectForSignal);		$DumpMessageDialog->vbox->add($vbox1);		$button2=$this->getWidget('button2',$arrObjectForSignal);		$DumpMessageDialog->add_action_widget($button2,0);		$button1=$this->getWidget('button1',$arrObjectForSignal);		$DumpMessageDialog->add_action_widget($button1,0);		$DumpMessageDialog->set_has_separator(false);		$DumpMessageDialog->set_events(Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK);		$DumpMessageDialog->set_size_request(500, -1);		$DumpMessageDialog->set_visible(true, false);		$DumpMessageDialog->connect_simple('close', array('Gtk','main_quit') );
		if(isset($DumpMessageDialog)and $DumpMessageDialog->get_name()=='GtkDialog'){// 窗体名称
			$DumpMessageDialog->set_name('DumpMessageDialog');
		}
		if(isset($DumpMessageDialog)and !$DumpMessageDialog->get_data('creator')){// 在 窗体中 记录 Creator
			$DumpMessageDialog->set_data('creator',$this);
		}
		return $DumpMessageDialog;
	}
	/**
	 * 创建窗体 GtkVBox:vbox1
	 */
	 protected function create_vbox1(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$vbox1=new GtkVBox();
		$vbox1->set_homogeneous(false);
		$vbox1->set_spacing(0);
		$label1=$this->getWidget('label1',$arrObjectForSignal);		$vbox1->pack_start($label1, false, false, False);		$scrolledwindow1=$this->getWidget('scrolledwindow1',$arrObjectForSignal);		$vbox1->pack_start($scrolledwindow1, true, true, 0);		$vbox1->set_visible(true, false);
		if(isset($vbox1)and $vbox1->get_name()=='GtkVBox'){// 窗体名称
			$vbox1->set_name('vbox1');
		}
		if(isset($vbox1)and !$vbox1->get_data('creator')){// 在 窗体中 记录 Creator
			$vbox1->set_data('creator',$this);
		}
		return $vbox1;
	}
	/**
	 * 创建窗体 GtkLabel:label1
	 */
	 protected function create_label1(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$label1=new GtkLabel();		$label1->set_label("DoYouHaoBaby Framework 调试台");		$label1->set_alignment(0.5, 0.5);		$label1->set_padding(20, 25);		$label1->set_visible(true, false);
		if(isset($label1)and $label1->get_name()=='GtkLabel'){// 窗体名称
			$label1->set_name('label1');
		}
		if(isset($label1)and !$label1->get_data('creator')){// 在 窗体中 记录 Creator
			$label1->set_data('creator',$this);
		}
		return $label1;
	}
	/**
	 * 创建窗体 GtkScrolledWindow:scrolledwindow1
	 */
	 protected function create_scrolledwindow1(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$scrolledwindow1=new GtkScrolledWindow();		$scrolledwindow1->set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC);		$DumpMessage=$this->getWidget('DumpMessage',$arrObjectForSignal);		$scrolledwindow1->add_with_viewport($DumpMessage);		$scrolledwindow1->set_visible(true, false);
		if(isset($scrolledwindow1)and $scrolledwindow1->get_name()=='GtkScrolledWindow'){// 窗体名称
			$scrolledwindow1->set_name('scrolledwindow1');
		}
		if(isset($scrolledwindow1)and !$scrolledwindow1->get_data('creator')){// 在 窗体中 记录 Creator
			$scrolledwindow1->set_data('creator',$this);
		}
		return $scrolledwindow1;
	}
	/**
	 * 创建窗体 GtkTextView:DumpMessage
	 */
	 protected function create_DumpMessage(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$DumpMessage=new GtkTextView();		$oTextBuffer=new GtkTextBuffer();		$DumpMessage->set_buffer($oTextBuffer);		$DumpMessage->set_pixels_below_lines(1);		$DumpMessage->set_pixels_inside_wrap(1);		$DumpMessage->set_right_margin(1);		$DumpMessage->set_events(Gdk::POINTER_MOTION_HINT_MASK | Gdk::STRUCTURE_MASK);		$DumpMessage->set_visible(true, false);
		if(isset($DumpMessage)and $DumpMessage->get_name()=='GtkTextView'){// 窗体名称
			$DumpMessage->set_name('DumpMessage');
		}
		if(isset($DumpMessage)and !$DumpMessage->get_data('creator')){// 在 窗体中 记录 Creator
			$DumpMessage->set_data('creator',$this);
		}
		return $DumpMessage;
	}
	/**
	 * 创建窗体 GtkButton:button2
	 */
	 protected function create_button2(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$button2=new GtkButton();		$button2->set_label('社区在线帮助');		$button2->set_events(Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK);		$button2->set_visible(true, false);		$button2->connect_simple('clicked', array('G','openUrlGtk') ,'http://bbs.doyouhaobaby.net');
		if(isset($button2)and $button2->get_name()=='GtkButton'){// 窗体名称
			$button2->set_name('button2');
		}
		if(isset($button2)and !$button2->get_data('creator')){// 在 窗体中 记录 Creator
			$button2->set_data('creator',$this);
		}
		return $button2;
	}
	/**
	 * 创建窗体 GtkButton:button1
	 */
	 protected function create_button1(array $arrObjectForSignal=array()){
		A::ISTHESE($arrObjectForSignal, array('array:object,null'),G::L('$arrObjectForSignal必须为对象或者null','Dyhb'));
		foreach($arrObjectForSignal as $sObName=>$oObject){// 声明 用于响应 Signal 事件的对象的引用
			if($oObject)
				$$sObName=$oObject;
		}
				$button1=new GtkButton();		$button1->set_label('关闭');		$button1->set_events(Gdk::POINTER_MOTION_MASK | Gdk::POINTER_MOTION_HINT_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK);		$button1->set_visible(true, false);		$button1->connect('clicked', 'click_button' );
		if(isset($button1)and $button1->get_name()=='GtkButton'){// 窗体名称
			$button1->set_name('button1');
		}
		if(isset($button1)and !$button1->get_data('creator')){// 在 窗体中 记录 Creator
			$button1->set_data('creator',$this);
		}
		return $button1;
	}
}
